package com.app.service;

import com.app.model.response.RetCode;
import com.app.model.response.RetStatus;
import org.springframework.stereotype.Service;

/**
 * Created by Lichaojie on 2017/3/13. It's a beautiful day.
 */
@Service
public class ResponseService {

    public RetStatus doResponse(int code){
        RetStatus retStatus = new RetStatus();
        retStatus.setCode(code)
                .setMessage(RetCode.getMessage(code))
                .setBody(new String());
        return retStatus;
    }
}
